import 'package:flutter/material.dart';

import 'LoadingWidget.dart';

class BaseLoadind extends StatelessWidget {
  bool isLoading;
  Widget child;

  BaseLoadind({Key? key,required this.isLoading , required this.child}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return isLoading ? const LoadingWidget() : child;
  }
}
